// components/recommendCard/recommendCard.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
		team:Object
    },

    /**
     * 组件的初始数据
     */
    data: { 

    },

    /**
     * 组件的方法列表
     */
    methods: {
        openTeamDetail(e) {
			var pages = getCurrentPages() //获取加载的页面
			var currentPage = pages[pages.length - 1] //获取当前页面的对象
			var url = currentPage.route //当前页面url
			console.log(e)
			if (url != "pages/mymatch/mymatch" || url != "pages/beinvited/beinvited") {
				wx.navigateTo({
					url: '/pages/teamDetail/teamDetail?teamId=' + this.data.team.teamId,
				})
			}
            
        },
    }
})